/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package koneksi;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author SONY
 */
public class testKoneksi {
    public static void main(String[] args) {
        try {
            Connection con = CekKoneksi.open();
            Statement st = con.createStatement();
//            String member = "create table PEGAWAI (USERNAME varchar2(20),"+ "PASSWORD varchar2(20))";
//            st.executeQuery(member);
//            System.out.println("PEGAWAI created");
            String barang = "create table BARANG2 (KODE_BARANG varchar2(30), NAMA_BARANG varchar2(30), HARGA_BARANG varchar2(20), JUMLAH varchar(50))";
            System.out.println("Barang Created");
            st.executeQuery(barang);
        } catch (SQLException ex) {
            Logger.getLogger(testKoneksi.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
